package com.bdilab.iot.service;

import com.bdilab.iot.dto.userdto.CreateUserDto;
import com.bdilab.iot.dto.userdto.LoginResultDto;
import com.bdilab.iot.dto.userdto.UpdateUserDto;
import com.bdilab.iot.dto.userdto.UserDetail;
import com.bdilab.iot.model.User;

/**
 * @author WangNing
 * @version 1.0
 * @date 2020/7/31 19:06
 */
public interface UserService {

    User getUserByUserName(String userName);

    LoginResultDto createUser(CreateUserDto createUserDto);

    void updateUser(UpdateUserDto updateUserDto, Long userId);

    void deleteUser(Long userId);

    UserDetail getMyUserDetail(User user);

    UserDetail getUserDetailByUserId(Long userId);

}
